package com.chenfeng.ego.sso.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.chenfeng.ego.commons.pojo.EgoResult;
import com.chenfeng.ego.pojo.TbUser;

public interface UserService
{
	//登录
	EgoResult login(TbUser tb,HttpServletRequest req,HttpServletResponse res);
	//jsonp请求 单点登录用里面的数据
	EgoResult getTokenResult(String token, HttpServletRequest req, HttpServletResponse res);
	//退出  要把redis删除以及cookie里面的TT_TOKEN
	EgoResult lgout(String token, HttpServletRequest req, HttpServletResponse res);
	//检查用户名手机号邮箱等是都注册过
	EgoResult check(String user,int type);
	//注册
	public EgoResult register(TbUser user);
}
